<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\models\ContractorSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="search-form contractor-search">

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
    ]); ?>
    <div class="row">
        <?= $form->field($model, 'id', ['options' => ['class' => 'col-sm-1']]) ?>
        <?= $form->field($model, 'inn', ['options' => ['class' => 'col-sm-3']]) ?>
        <?= $form->field($model, 'kpp', ['options' => ['class' => 'col-sm-3']]) ?>
        <?= $form->field($model, 'ogrn', ['options' => ['class' => 'col-sm-3']]) ?>
        <?= $form->field($model, 'okpo', ['options' => ['class' => 'col-sm-2']]) ?>
    </div>

    <?php echo $form->field($model, 'name_full_opf') ?>

    <?php echo $form->field($model, 'name_short_opf') ?>
    
    <div class="row">
        <?php echo $form->field($model, 'management', ['options' => ['class' => 'col-sm-6']]) ?>
        <?php echo $form->field($model, 'address', ['options' => ['class' => 'col-sm-6']]) ?>
    </div>

    <div class="row">
        <?php echo $form->field($model, 'email', ['options' => ['class' => 'col-sm-6']]) ?>
        <?php echo $form->field($model, 'phone', ['options' => ['class' => 'col-sm-6']]) ?>
    </div>

    <div class="form-group">
        <?= Html::submitButton('Поиск', ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Сбросить', ['index'], ['class' => 'btn btn-secondary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
